package com.ssy.lingxi.member.merchant.api.model.vo.paas;

import com.ssy.lingxi.member.merchant.api.handler.annotation.CountryCodeAnno;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.PositiveOrZero;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 国家代码接口参数VO
 * @author 万宁
 * @version 2.0.0
 * @date 2020-07-14
 */
public class CountryCodeUpdateInsertVO implements Serializable {
    private static final long serialVersionUID = -767277445030106507L;

    /**
     * 国家代码
     */
    @NotBlank(message = "国家代码不能为空")
    @Size(max = 20, message = "国家代码最长20个字符")
    @CountryCodeAnno
    private String code;

    /**
     * 电话号码长度
     */
    @PositiveOrZero(message = "电话号码长度要大于等于0")
    private Integer phoneLength;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getPhoneLength() {
        return phoneLength;
    }

    public void setPhoneLength(Integer phoneLength) {
        this.phoneLength = phoneLength;
    }
}
